/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.pretorius.question3.crp.model.impl;

import java.math.BigDecimal;
import za.ac.cput.pretorius.question3.crp.model.BonusInterest;

/**
 *
 * @author griddy
 */
public class ChequeAccount extends Account{
    
    private BonusInterest bonusInterest = new BonusChequeInterest();

    public ChequeAccount(BigDecimal balance) {
        super(balance);
        super.setAccountType("Cheque");
    }
    
    public ChequeAccount() {
            super();
            super.setAccountType("Cheque");
    }
    
    
    
    @Override
     public BigDecimal calculateBonusInterest() {
        return bonusInterest.calculateBonsInterest(super.getBalance());
    }
    
}
